export const tabs = [
  { id: '1', name: 'discover', label: '发现', icon: require('@/assets/icon_find.svg') },
  { id: '3', name: 'achievement', label: '科技成果', icon: require('@/assets/home/icon_kjcg@2x.png') },
  { id: '4', name: 'space', label: '空间', icon: require('@/assets/home/icon_space@2x.png') },
  { id: '5', name: 'fund', label: '资金', icon: require('@/assets/home/icon_fund@2x.png') },
  { id: '6', name: 'service', label: '服务', icon: require('@/assets/home/icon_service@2x.png') },
  { id: '7', name: 'transform', label: '技术需求', icon: require('@/assets/home/icon_jsxq@2x.png') },
]

export const iconMap = tabs.reduce((res, cur) => ({
    ...res,
    [cur.name]: cur.icon
}));

/// home
// home页推荐的标签
const suggestTags = [
  { tab: 'discover', label: '#技能#', desc: '平台能提供哪些服务？' },
  { tab: 'discover', label: '#转化#', desc: '平台有多少科技成果？' },
  { tab: 'discover', label: '#调研#', desc: '平台如何评价一个科技成果？' },
  { tab: 'discover', label: '#成果#', desc: '科技成果转化的流程？' },
  { tab: 'discover', label: '#成果#', desc: '什么是技术经理人？' },
]
// home页推荐的tab
const suggestTabs = ['space', 'fund', 'service'];
export const homeConfig = {
  defaultTab: 'transform',
  tabs,
  suggestTags,
  suggestTabs: suggestTabs.map(tabName => tabs.find(tab => tab.name === tabName)),
}
